package com.jh.readme.iu.fragment.picturelist;

import com.jh.tools.base.BaseFPresenter;
import com.jh.tools.base.BaseModel;
import com.jh.tools.base.BaseView;
import com.jh.tools.bean.SinaPhotoList;

import java.util.List;

import rx.Observable;

/**
 * Home抽象类
 */
public interface PictureListContract {
    interface Model extends BaseModel {
       Observable<SinaPhotoList> getDateImgList(String photoTypeId, int page);
    }


    interface View extends BaseView {
        /**
         * 初始化视图
         * @param sinaPhotoLists
         */
        void initView(List<SinaPhotoList> sinaPhotoLists);
    }

    abstract class Presenter extends BaseFPresenter<Model, View> {
       abstract void getImgList(String photoTypeId, int page);
    }
}